package com.idp.system.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户导出excelDTO类
 * @author king
 */
@ColumnWidth(20)
@ContentStyle(wrapped = BooleanEnum.TRUE, verticalAlignment = VerticalAlignmentEnum.CENTER,
		borderTop = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN, borderLeft = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN)
@ContentFontStyle(fontName = "宋体")
@Data
@ApiModel(description = "用户导出excelDTO类")
public class SysUserExcelDto implements Serializable {

	private static final long serialVersionUID = 1L;

	@ExcelProperty("用户账号")
	private String uname;
	@ExcelProperty("姓名")
	private String fullName;
	@ExcelProperty("角色")
	private String roleNames;
	@ExcelProperty("电话")
	private String phone;
	@ExcelProperty("邮箱")
	private String email;
	@ColumnWidth(40)
	@ExcelProperty("描述")
	private String description;

}
